@extends('admin_system/public/layout')
@section('content')
    <div class="col-xs-12 nav top-nav">
        <p class="float-left nav-path"><strong>当前位置：</strong>分会管理>>会长列表</p>


        <a class="btn-default btn float-right ml10" onclick="location.reload();return false;">刷新</a>
        <a class="btn-default btn float-right back ml10">返回</a>
        <a class="btn-danger btn float-right" href="{{asset('admin_system/chapter/prisidentEditIndex?chapterId='.$chapterId)}}">新增会长</a>

    </div>

    <div class="content-box col-xs-12 mt20 pb20 pt20">
        <table class="table table-bordered">
            <tr class="active">
                <th>会长</th>
                <th>类型</th>
                <th>总计金额</th>
                <th>剩余金额</th>
                <th>加入时间</th>
                <th></th>
            </tr>


            @foreach($prisidents as $prisident)
                <tr>
                    <td>{{$prisident->YourName}}</td>
                    <td>{{$prisident->prisident_type_name}}</td>
                    <td>{{$prisident->total_money}}</td>
                    <td>{{$prisident->surplus_money}}</td>
                    <td>{{$prisident->add_time}}</td>
                    <td>
                        <a href="{{asset('admin_system/chapter/prisidentDelete?prisidentId='.$prisident->chapter_prisident_id)}}" onclick="return confirm('确定删除吗？');">删除</a>
                        <a href="{{asset('admin_system/chapter/prisidentEditIndex?prisidentId='.$prisident->chapter_prisident_id)}}">编辑</a>
                    </td>
                </tr>
            @endforeach
        </table>


        {!! $prisidents->appends([])->links() !!}
    </div>
@endsection
